package org.dromara.system.domain.bo;

import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.system.domain.SysI18nConfig;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;

import java.io.Serial;

import jakarta.validation.constraints.*;

/**
 * 国际化配置业务对象 sys_i18n_config
 *
 * @author yilong.fu
 * @date 2024-11-06
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysI18nConfig.class, reverseConvertGenerate = false)
public class SysI18nConfigBo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 自然主键
     */
    @NotNull(message = "自然主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;

    /**
     * 语言编号
     */
    @NotBlank(message = "语言编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String language;

    /**
     * 编号
     */
    @NotBlank(message = "编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String enCode;

    /**
     * 值
     */
    @NotBlank(message = "值不能为空", groups = {AddGroup.class, EditGroup.class})
    private String content;

    /**
     * 排序
     */
    private Integer seq;


}
